<#macro placeTree filepath=''>
    <@_templateList path='/include'+filepath>
        <@_placeMetadata dir=filepath><#local metaDataMap=object/></@_placeMetadata>
        <#list list as a>
            <li>
            <#local path=filepath+'/'+a.fileName>
            <#if a.directory>
                <a href="placeTemplate/directory.html?path=${(path?url)!}" target="ajax" rel="cmsTemplatePlace">${a.fileName}</a>
                <ul><@placeTree path/></ul>
            <#else>
                <a href="placeTemplate/content.html?path=${(path?url)!}" target="ajax" rel="cmsTemplatePlace">${(metaDataMap[a.fileName].alias)!a.fileName}</a>
            </#if>
            </li>
        <#else>
            <li><a>空目录</a></li>
        </#list>
    </@_templateList>
</#macro>
    <div layoutH="0" style="float:left; display:block; overflow:auto; width:240px;border-right:solid 1px #CCC; line-height:21px;">
        <h2 class="contentTitle">
            <a class="button" href="placeTemplate/metadata.html" target="ajax" rel="cmsTemplatePlace">创建页面片段</a>
        </h2>
        <ul class="tree treeFolder" layoutH="48">
            <@placeTree/>
        </ul>
    </div>
    <div id="cmsTemplatePlace" style="margin-left:240px;">
        
    </div>
</div>